package afcp.alumni.dao.impl;

import org.springframework.stereotype.Component;

import afcp.alumni.dao.MemberDao;
import afcp.alumni.dao.base.DaoDatastore;
import afcp.alumni.model.base.DatastoreEntity;
import afcp.alumni.model.db.Member;

@Component
public class MemberDaoImpl extends DaoDatastore<Member> implements MemberDao {

//	private MemberDaoImpl() {
//	}
//
//	private static MemberDaoImpl instance = null;
//
//	public static MemberDaoImpl getDao() {
//		if (instance == null) {
//			instance = new MemberDaoImpl();
//		}
//		return instance;
//	}
	
//	@Autowired
//	private RoleDao roleDao;

	@Override
	protected Class<Member> getClassObject() {
		return Member.class;
	}

	@Override
	public DatastoreEntity getEntityAncestor() {
		return null;
//		return roleDao.getEntityAncestor();
//		return RoleDaoImpl.getDao().getEntityAncestor();
	}

//	@Override
//	protected Class<? extends UniqueField<?>> getUniqueFieldClassObject() {
//		return Login.class;
//	}

//	@Override
//	public Member find(Login field) {
//		return super.find(field);
//	}

}
